import request from '@/utils/request';

// /base/river/list
/**
 * 获取河流列表
 * @returns []
 */
export const getRiverList = (params) => 
  request({
    url: `/base/river/list`,
    method: 'get',
    params,
  })

  ///base/river/edit
  /**
   * 修改河流信息
   * @param {*} data
   * @returns
   */
  export const riverEdit = (data) => 
  request({
    url: `/base/river/edit`,
    method: 'post',
    data
  })

  ///base/river/add
  /**
   * 新增河流信息
   * @param {*} data
   * @returns
   */
  export const riverAdd = (data) => 
  request({
    url: `/base/river/add`,
    method: 'post',
    data
  })

  ///base/river/remove/{IDs}
  /**
   * 删除河流信息
   * @param {*} IDs
   * @returns
   */
  export const riverRemove = (IDs) => 
  request({
    url: `/base/river/remove/${IDs}`,
    method: 'get',
  })


